package com.xjust.controller.registerDepartMent;

import com.xjust.pojo.Result;
import com.xjust.pojo.SettlementRequest;
import com.xjust.service.SettleCategroyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/settleCategroys")
public class SettleCategroyController {
    @Autowired
    SettleCategroyService settleCategroyService;
    //获取结算类别
    @GetMapping("/getSettleCategroy")
    public Result getSettleCategroy(){
        List<Map<String, Object>> list = settleCategroyService.getSettleCategroy();
        System.out.println(list);
        return Result.success(list);
    }

}
